<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="../css/admin.css" />
		<script type="text/javascript" src="../js/tiny_mce/tiny_mce.js"></script>

		<script type="text/javascript">
			tinyMCE.init({
				mode : "textareas",
				theme : "advanced",
				plugins : "style,advhr,advimage,advlink,preview,media,paste,fullscreen,syntaxhl",
		
		            // Theme options
		            theme_advanced_buttons1 : "forecolor,backcolor,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
		            theme_advanced_buttons2 : "bullist,numlist,outdent,indent,|,undo,redo,|,sub,sup,blockquote,charmap,image,iespell,media,|,advhr,link,unlink,anchor,cleanup,|,pastetext,pasteword,code,preview,fullscreen,syntaxhl",
		            theme_advanced_buttons3 : "",
		            theme_advanced_toolbar_location : "top",
		            theme_advanced_toolbar_align : "left",
		            theme_advanced_resizing : true,
		
		            extended_valid_elements: "pre[name|class]",
		
		            relative_urls: false,
		            remove_script_host: false
			});
		</script>

		<title>增加新文章</title>
	</head>
	<body>
		<div>
			<div id="topmenubar"></div>
			<div id="myheader">
				<div id="blog_name">
					<h1>
						<a title="博客管理首页" href="/admin" class="header_link">博客管理控制台</a>
					</h1>
				</div>

				<div id="blog_preview">
					<a href="/" class="header_link">回到我的博客首页</a>
				</div>

				<div id="blog_domain" class="header_link">
					管理地址
					<a href="/admin" style="text-decoration: underline;"
						class="header_link">${admin_link}</a>
				</div>
			</div>
			<div id="mypage">
				<div id="leftbar">
					<div id="blog_owner_logo">
						<a href="http://realviv.javaeye.com"><img
								title="realviv的博客: 永远SOLO的熊宝宝"
								src="http://www.javaeye.com/upload/logo/user/315384/d740c986-2a8a-39c0-9576-1e3abe163451.jpg?1285234423"
								class="logo" alt="realviv的博客"> </a>
					</div>
					<div id="blog_nick_name">
						realviv
					</div>
					<div id="maintain_menu">
						<h5>
							博客管理
						</h5>
						<ul class="icons">
							<li class="new_blog">
								<a href="/admin/blogs/new" class="other_link">发表文章</a>
							</li>
							<li class="category">
								<a href="/admin/categories" class="other_link">分类管理</a>
							</li>
							<li class="album">
								<a href="/admin/pictures" class="other_link">相册管理</a>
							</li>
							<li class="comment">
								<a href="/blog/admin/blogs/comments" class="other_link">评论管理</a>
							</li>
							<li class="guest_book">
								<a href="/admin/guest_books" class="other_link">留言管理</a>
							</li>
							<li class="pdf_job">
								<a href="/admin/pdf_jobs" class="other_link">做电子书</a>
							</li>
							<li class="setting">
								<a href="/blog/admin/blogs/setting" class="other_link">博客设置</a>
							</li>
							<li class="import">
								<a href="/blog/admin/blogs/show_import" class="other_link">博客导入</a>
							</li>
							<li class="favorite">
								<a target="_blank" href="http://app.javaeye.com/links"
									class="other_link">收藏管理</a>
							</li>
						</ul>
						<h5>
							文章管理
						</h5>
						<ul>

							<li>
								<a href="/admin/blogs" class="other_link">全部博客
									(${total_article})</a>
							</li>

							#foreach( $key in $allcategory.keySet() )
							<li>
								<a href="/admin/categories/$key" class="other_link">$allcategory.get($key)</a>
							</li>
							#end
						</ul>
					</div>
				</div>

				<div id="main">
					<form action="">
						<table width="100%" cellspacing="1" border="0" style="margin-bottom:10px;">
							<tbody>
								<tr>
									<td class="row1">
										博客标题
										<span style="color: red; margin-left: 5px; font-weight: bold;">*</span>
									</td>
									<td>
										<select name="blog[category_id]" id="blog_category_id">
											<option selected="selected" value="">
												-博客分类-
											</option>
											<!--  
											#foreach($key in $allcatergoryname.keySet())
											<option value="$key">
												$allcatergoryname.get($key)
											</option>
											#end-->
										</select>
										<br>
										<input type="text" style="width: 400px;" size="45"
											name="blog[title]" maxlength="80" id="blog_title"
											class="text required min-length-3 validation-failed" title="">
									</td>
								</tr>
								<tr>
									<td class="row1">
										标签(用逗号分隔)
									</td>
									<td>
										<input type="text" style="width: 400px;" size="45"
											name="blog[title]" maxlength="80" id="blog_title"
											class="text required min-length-3 validation-failed" title="">
									</td>
								</tr>
								<tr>
									<td colspan="2">
										<textarea id="articleContent" name="articleContent" rows="15"
											cols="80" style="width: 100%">
										</textarea>

										<div align="center" id="tips">
											提示：内容长度最大64KB，约2万多汉字，如果出现超长（比如从Word粘贴带格式文本）被截断的问题，请分开发布
										</div>
									</td>
								</tr>

								<tr id="blog_options">
									<td class="row1">
										选项(单选)
									</td>
								</tr>

								<tr>
									<td align="center" colspan="2">
										<input type="submit" value="提交" name="commit"
											id="submit_button" class="submit validation-passed">
										<input type="button"
											onclick="$('blog_form').action = '/admin/blogs/create_draft';$('submit_button').click();"
											value="取消" class="submit">
									</td>
								</tr>
							</tbody>
						</table>
					</form>
				</div>
	</body>
</html>